package com.eastfair.certificate.hystrix;

import com.eastfair.certificate.api.CertificateApiFeign;
import com.eastfair.certificate.dto.CertificateIndexDTO;
import com.eastfair.certificate.dto.CertificateOrderDTO;
import com.eastfair.certificate.dto.CertificateUserDTO;
import com.eastfair.certificate.vo.CertificateOrderVO;
import com.eastfair.common.req.CertificateIndexReq;
import com.eastfair.common.vo.CarInOffRecord;
import com.eastfair.common.vo.CertBlackList;
import com.eastfair.core.base.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户API熔断
 *
 * @author zuihou
 * @date 2019/07/23
 */
@Slf4j
@Component
public class CertificateApiFallback implements CertificateApiFeign {


    @Override
    public R sycnCarOff(CarInOffRecord carInOffRecord) {
        return R.timeout();
    }

    @Override
    public R<List<CertificateUserDTO>> sycnCertificate() {
        return R.timeout();
    }

    @Override
    public R<List<CertificateIndexReq>> sycnCertificateIndex(CertificateIndexDTO certificateIndexDTO) {
        return R.timeout();
    }

    @Override
    public R sycnBlackList(List<CertBlackList> certBlackLists) {
        return R.timeout();
    }

    @Override
    public R readyPayOrder(CertificateOrderDTO certificateOrderDTO) {
        return R.timeout();
    }

    @Override
    public R<CertificateOrderVO> payOrder(CertificateOrderDTO certificateOrderDTO) {
        return R.timeout();
    }
}
